package com.tbit.uqbike.object.pojo;

import com.tbit.uqbike.object.value.Page;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 车辆电池绑定表(MachineBatteryBound)实体类
 *
 * @author jing
 * @since 2020-12-04 10:32:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MachineBatteryBound implements Serializable {
    private static final long serialVersionUID = 983834435033971752L;
    /**
     * 车辆电池绑定主键
     */
    private Integer machineBatteryBoundId;
    /**
     * 设备id
     */
    private Integer machineId;
    /**
     * 账户id
     */
    private Integer accountId;
    /**
     * 设备编号
     */
    private String machineNO;
    /**
     * 用户码
     */
    private String userCode;
    /**
     * 车辆编号集合
     */
    private String userCodes;
    /**
     * 车辆编号集合
     */
    private List<String> data;
    /**
     * 车辆型号id
     */
    private Integer bikeModelId;
    /**
     * 电池编号
     */
    private String batteryNO;
    /**
     * 绑定时间
     */
    private Date boundTime;
    /**
     * 开始页
     */
    private Integer pageNO;
    /**
     * 数量
     */
    private Integer rowCount;

    private Page page;

    private List<String> list;

    public MachineBatteryBound(Integer machineId, Integer accountId, String machineNO, String userCode, Integer bikeModelId, String batteryNO, Date boundTime) {
        this.machineId = machineId;
        this.accountId = accountId;
        this.machineNO = machineNO;
        this.userCode = userCode;
        this.bikeModelId = bikeModelId;
        this.batteryNO = batteryNO;
        this.boundTime = boundTime;
    }

    public MachineBatteryBound(String batteryNO, String userCode) {
        this.batteryNO = batteryNO;
        this.userCode = userCode;
    }

}